package com.dragon.utils;

import java.math.BigDecimal;
import java.text.DecimalFormat;

/**
 * @author: dragon
 * @date: 2019/03/22 09:48
 * @version: V1.0.0-RELEASE
 */
public class Demo {

    public static void main(String[] args) {
        double d = 0.0700;
        double v = new BigDecimal(d).multiply(new BigDecimal(100)).doubleValue();
        System.out.println(v);
        DecimalFormat decimalFormat = new DecimalFormat("0.00");
        System.out.println(decimalFormat.format(v));
    }
}
